// dllmain.cpp : Implementation of DllMain.

#include "stdafx.h"
#include "resource.h"
#include "WebSlideShowExtension_i.h"
#include "dllmain.h"

CWebSlideShowExtensionModule _AtlModule;
CAtlModule* g_pAtlModule = &_AtlModule;

// DLL Entry Point
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
	hInstance;

    if (dwReason == DLL_PROCESS_ATTACH)
    {
        TCHAR szLoader[MAX_PATH];
        GetModuleFileName(NULL, szLoader, MAX_PATH);

        _tcslwr(szLoader);
        if (_tcsstr(szLoader, _T("explorer.exe"))) 
            return FALSE;
    }

    return _AtlModule.DllMain(dwReason, lpReserved); 
}
